package com.springboot.cloud.sysapps.exam.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springboot.cloud.sysapps.exam.dao.QuestionMapper;
import com.springboot.cloud.sysapps.exam.po.Question;
import com.springboot.cloud.sysapps.exam.service.IQuestionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Slf4j
public class QuestionService extends ServiceImpl<QuestionMapper, Question> implements IQuestionService {
    @Override
    @Transactional
    public boolean add(Question question) {
        log.debug("---------"+question);
        return this.save(question);
    }
}
